using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web.Configuration;

public class BaseDAL
{
    public BaseDAL()
    {

    }

    //protected string Connstr = ConfigurationManager.ConnectionStrings["SqlServices"].ToString();

    protected string Connstr = ConfigurationManager.ConnectionStrings["SqlServices"].ToString();
    // Ham ket noi Data
    protected SqlConnection GetConnectionString()
    {
        SqlConnection myConn = new SqlConnection(Connstr);
        if (myConn.State == ConnectionState.Open)
            myConn.Close();


        myConn.Open();
        return myConn;
    }
}
